package com.github.wxpay.sdk;

import java.io.InputStream;

/**
 * Created by Zhang on 2018/11/28.
 */
public class WxPayConfigImpl extends  WXPayConfig {


    @Override
    public  String getAppID() {
        return "wxf53aa796c231870e";
    }

    @Override
   public String getMchID() {
        return "1498421112";
    }

    @Override
    String getKey() {
        return "xcpitf5fi2etzl2rxtm5nbxdugggsnan";
    }

    @Override
    InputStream getCertStream() {
        return null;
    }

    @Override
    IWXPayDomain getWXPayDomain() {
        IWXPayDomain Iw=new IWXPayDomain() {
            @Override
            public void report(String domain, long elapsedTimeMillis, Exception ex) {
                System.err.println("domain:"+domain);
                System.err.println("elapsedTimeMillis:"+elapsedTimeMillis);
                System.err.println("ex:"+ex);
            }

            @Override
            public DomainInfo getDomain(WXPayConfig config) {
                DomainInfo domainInfo=new DomainInfo("weixin.ngrokproxy.site",true);
                return domainInfo;
            }
        };
        return Iw;
    }
}
